//
//  Contents.m
//  __PRODUCTNAME__
//
//  Created by 鹏飞罗 on 16/08/13
//  Copyright (c) dllo. All rights reserved.
//

#import "Contents.h"
#import "List.h"

@implementation Contents
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray<List *> *listArray = [NSMutableArray array];
        NSArray *listArr = value;
        for (NSDictionary *listDic in listArr) {
            List *list = [List modelWithDictionary:listDic];
            [listArray addObject:list];
        }
        _list = listArray;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"list" : [List class]};
}

@end
